/*
 * @Author: NtyAaron
 * @Date: 2021-04-14 11:16:31
 * @LastEditors: NtyAaron
 * @LastEditTime: 2021-04-15 03:44:53
 * @Description: file content
 * @FilePath: \dwq\pages\overviewDetail\overviewDetail.js
 */

import { getArticle } from '../../api/article/article'
Page({
  data: {
    articleDetail: '',
  },
  // 获取文章详情
  async getArticleDetail(e) {
    let { result } = await getArticle(e)
    this.setData({
      articleDetail: result,
    })
  },
  onLoad(e) {
    let objReq = {
      articleId: e.momentId,
      userId: 1,
    }
    this.getArticleDetail(objReq)
  },
})
